
import junit.framework.Assert;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

/**
 * 
 */

/**
 * @author awhillans11
 *
 */
public class firstTest {

	booleanSchedule student1 = new booleanSchedule();
	/**
	 * @throws java.lang.Exception
	 */
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@Before
	public void setUp() throws Exception {
		booleanSchedule student1 = new booleanSchedule();
	}

	/**
	 * @throws java.lang.Exception
	 */
	@After
	public void tearDown() throws Exception {
		student1 = null;
	}
	
	@Test
	public void  initializeBooleanScheduleTest()
	{

		
		Assert.assertFalse(student1.getAvailable(0));
		Assert.assertFalse(student1.getAvailable(55));
	}
	
	@Test
	public void  checkAvailableScheduleTest()
	{
		milTimeSchedule timeSchedule;
		
		timeSchedule = new milTimeSchedule();
		
		timeSchedule.setAvailable(900,1200);
		
		student1.generateSchedule(timeSchedule);
		Assert.assertFalse(student1.getAvailable(0));
		Assert.assertTrue(student1.getAvailable(8));
	}
	
	@Test
	public void  checkSetMeetTime()
	{
		milTimeSchedule timeSchedule;
		
		timeSchedule = new milTimeSchedule();
		
		timeSchedule.setMinimumMeetTime(4);
		
		Assert.assertEquals(4,timeSchedule.getMeetTime());
		
	}
}
